package lab01;

/**
 * Created by 唐苗苗 on 2017/12/30.
 */
public class Test10 {String[] s = new String[]{"A", "B", "C", "D", "E", "F",
            "G", "H", "I", "J", "K", "L", "M",
            "N", "O", "P", "Q", "R", "S", "T"};
    int a;
    int b;
    int c;
    int num1 = 0;
    int num2 = 10;

    {
        for (a = 1; a < 5; a++)
            for (b = 0; b < 4 - a; b++) {
                System.out.print(" ");
            }
        for (c = 0; c < a; c++) {
            System.out.print(s[num1]);
            System.out.print(" ");
            num1++;
        }
        System.out.println();
    }

    {
        for (a = 1; a < 5; a++)
            for (b = 1; b < a; b++) {
                System.out.print(" ");
            }
        for (c = 5; c > a; c--) {
            System.out.print(s[num2]);
            System.out.print(" ");
            num2++;
        }
        System.out.println();
    }
}
